package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品分类（二级）对象 sys_product
 *
 * @author ruoyi
 * @date 2024-07-16
 */
public class SysProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 产品id
     */
    private Long proId;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String proName;

    /**
     * 产品父id
     */
    @Excel(name = "产品父id")
    private Long proParentId;

    private String supplierId;

    @Excel(name = "供应商名")
    private String supplierName;

    public void setProId(Long proId) {
        this.proId = proId;
    }

    public Long getProId() {
        return proId;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProName() {
        return proName;
    }

    public void setProParentId(Long proParentId) {
        this.proParentId = proParentId;
    }

    public Long getProParentId() {
        return proParentId;
    }


    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("proId", getProId())
                .append("proName", getProName())
                .append("proParentId", getProParentId())
                .append("supplierId", getSupplierId())
                .append("supplierName", getSupplierName())
                .toString();
    }
}
